﻿namespace MicroCloud.Audits
{
    /// <summary>
    /// 审计模块基类
    /// </summary>
    [Description("审计模块")]
    [DependsOnPacks(typeof(EventBusPack))]
    public abstract class AuditPackBase : PackBase
    {
        #region "属性"
        #region "获取 模块级别"
        /// <summary>
        /// 获取 模块级别
        /// </summary>
        public override PackLevel Level => PackLevel.Business;
        #endregion

        #endregion

        #region "方法"
        #region "将模块服务添加到依赖注入服务容器中"
        /// <summary>
        /// 将模块服务添加到依赖注入服务容器中
        /// </summary>
        /// <param name="services">依赖注入服务容器</param>
        /// <returns>服务集合</returns>
        public override IServiceCollection AddServices(IServiceCollection services)
        {
            services.AddEventHandler<AuditEntityEventHandler>();

            return base.AddServices(services);
        }
        #endregion

        #endregion

    }

}
